<script>
	import DB from '@/common/sqlite.js'
	export default {
		onLaunch: function() {
			 
			console.log('App Launch')
		},
		onShow: function() {
			if(!DB.isOpen()){
				DB.openSqlite()
				console.log('打开数据库sqlite')
			}
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
			if(DB.isOpen()){
				DB.closeSqlite()
				console.log('关闭数据库sqlite')
			}
			
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
